package com.pandy.disruptor.quickstart;

import com.lmax.disruptor.EventHandler;

/**
 * @description: 事件监听类，用来处理数据
 * @author: panhong
 * @date: 2025/4/10
 */
public class OrderEventHandler implements EventHandler<OrderEvent> {

    @Override
    public void onEvent(OrderEvent event, long sequence, boolean endOfBatch) throws Exception {
        System.out.println("消费数据：" + event.getOderId());
    }
}
